package com.qf.feign;

import com.qf.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 你的名字
 * @Date: 2021/07/17/9:30
 * @Description:
 */
@FeignClient(name = "goods",path ="/goods" )
public interface GoodService {
    @RequestMapping("/info/{id}")
    public Goods info(@PathVariable("id") Integer id);

}
